<template lang="">
    <div>
        <input placeholder="请输入查询内容" v-model="title"/>
        <button @click='search'>搜索</button>
        <ul>
            <li v-for='i in list'>{{i.title}}</li>
        </ul>
        <ul>
            <li v-for='i in lists'>{{i.title}}</li>
        </ul>
    </div>
</template>
<script>
export default {
    data(){
        return{
            title:'',
            list:[],
            lists:[]
        }
    },
    methods: {
        search(){
            this.axios.get('search?title='+this.title).then(res=>{
                this.list = res.data.list
                alert(res.data.mes)
            })
        }
    },
}
</script>
<style lang="">
    
</style>